<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var height = window.pprompt("请输入身高:");
        var width = window.prompt("请输入体重:")
        var BMI = width/height*height;
        if (BMI>32){
            alert("非常胖")
        }else if(BMI>=28&&BMI<=32){
            alert("肥胖")
        }else if(BMI>=25&&BMI<28){
            alert("过重")
        }else if(BMI>=18.5&&BMI<25){
            alert("正常")
        }else if(BMI<18.5){
            alert("太轻了")
        }


    </script>
</body>
</html>